Use poll instead of select to handle large fds
authorAlex Crichton <alex@alexcrichton.com>
Fri, 8 Sep 2017 05:14:55 +0000 (22:14 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 8 Sep 2017 05:14:55 +0000 (22:14 -0700)
commit2380c9ea8569552bf0c28247890b7394d180482d
tree69c9a2a15458a115e07e5ac3d8ae6396f72ed4a0
parent98b6f6254e083647621b3ad2bf3628b79e5846fd
Use poll instead of select to handle large fds

It may be the case that Cargo's running around with a lot of file descriptors,
and in this case we wouldn't be able to call `select` due to the file
descriptors being too large and not fitting in the bit array. This switches to
what the standard library is currently doing, using `poll`, which doesn't have
this limitations.
src/cargo/util/read2.rs